<template>
  <ul>
      <!-- news用大括号绑定，在v-for里根据index循环显示 -->
      <li v-for="(news,index) in newsArr" :key="index">{{news}}</li>
  </ul>
</template>

<script>
export default {
    data(){
        return{
            newsArr:['news01','news02','news03','news04']
        }
    }

}
</script>

<style>

</style>